package com.mdinfo.system.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.mdinfo.system.bean.SysEmp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/11/22.
 */
public interface SysEmpMapper extends BaseMapper<SysEmp> {

    /**
     * 分页条件查询
     */
    List<SysEmp> listQuery(@Param("start")Integer start,
                           @Param("num")Integer num,
                           @Param("deptId")Integer deptId,
                           @Param("key")String key,
                           @Param("deptIdList")List<Integer> deptIdList);

    /**
     * 条件查询总数
     */
    int countListQuery(@Param("deptId")Integer deptId,
                       @Param("key")String key,
                       @Param("deptIdList")List<Integer> deptIdList);
}
